package com.ayf.payment.game.api.entity.base;

import com.swwx.charm.commons.lang.base.BasicTO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
 * @Description: 实体类父类
 * @Author: zh-liang
 * @Date : 2019-12-03
 */
@Data
@MappedSuperclass
public class AutoIncBaseEntity extends BasicTO {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private String id;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;

}
